<!DOCTYPE html>
<html lang="en"
 xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MyPetstore</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
    <link rel="StyleSheet" href="../css/jquery-ui.css" type="text/css" media="screen"/>
    <script type="text/javascript" src="../js/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="../js/jquery-ui.js"></script>
    <script type="text/javascript" src="../js/SearchBoxAutoComplete.js"></script>
</head>
<body>
<header th:fragment="header">
    <div id="Header">

        <div id="Logo">
            <div id="LogoContent">
                <a href="/catalog/view"><img src="../images/logo-topbar.gif" /></a>
            </div>
        </div>

        <div id="Menu">
            <div id="MenuContent">
                <a href="/cart/viewCart">
                    <img align="middle" name="img_cart" src="../images/cart.gif" />
                </a>
                <img align="middle" src="../images/separator.gif" />


                <span th:if="${session.account == null}">
                    <a href="/account/signin" id="login-link">Sign In</a>
                    <img align="middle" src="../images/separator.gif" />
                </span>
                <span th:if="${session.account != null}">
                    <span th:unless="${session.account?.authenticated} == false">
                        <a href="/account/signout">Sign Out</a>
                        <img align="middle" src="../images/separator.gif" />
                        <a href="/account/viewEdit">My Account</a>
                        <img align="middle" src="../images/separator.gif" />
                    </span>
                </span>




<!--                <c:if test="${sessionScope.account != null }">-->
<!--                    <c:if test="${!sessionScope.account.authenticated}">-->
<!--                        <a href="signin" id="login-link">Sign In</a>-->
<!--                        <img align="middle" src="../images/separator.gif" />-->
<!--                    </c:if>-->
<!--                </c:if>-->
<!--                <c:if test="${sessionScope.account == null  }">-->
<!--                    <a href="#" id="login-link">Sign In</a>-->
<!--                    <img align="middle" src="../images/separator.gif" />-->
<!--                </c:if>-->
<!--                <c:if test="${sessionScope.account != null }">-->
<!--                    <c:if test="${sessionScope.account.authenticated}">-->
<!--                        <a href="signout">Sign Out</a>-->
<!--                        <img align="middle" src="../images/separator.gif" />-->
<!--                        <a href="editAccountForm">My Account</a>-->
<!--                        <img align="middle" src="../images/separator.gif" />-->

<!--                    </c:if>-->
<!--                </c:if>-->
                <a href="/catalog/viewHelp">
                    ?
                </a>
            </div>
        </div>

        <div id="Search">
            <div id="SearchContent">
                <form action="searchProduct" method="post">
                    <div class="autocomplete">
                        <input type="text" id="keyword" name="keyword" size="14" onclick="initAutoComplete();"/>
                        <input type="submit" name="searchProducts" value="Search" class="btn" />
                    </div>
                </form>
            </div>
        </div>

        <div id="QuickLinks">
            <a href="/catalog/viewCategory?categoryId=FISH">
                <img src="../images/sm_fish.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=DOGS">
                <img src="../images/sm_dogs.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=REPTILES">
                <img src="../images/sm_reptiles.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=CATS">
                <img src="../images/sm_cats.gif" />
            </a>
            <img src="../images/separator.gif" />
            <a href="/catalog/viewCategory?categoryId=BIRDS">
                <img src="../images/sm_birds.gif" />
            </a>
        </div>

    </div>

<!--    <%@ include file="../account/LoginCard.jsp" %>-->


</header>


</body>
</html>